package com.accum.client;

import java.util.List;
import java.util.Map;

import com.accum.shared.pojo.WordEntry;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface GreetingServiceAsync {
	
	void greetServer(String input, AsyncCallback<String> callback)
			throws IllegalArgumentException;

	void addEntry(String entryName, AsyncCallback<Boolean> callback);

	void getEntries(AsyncCallback<List<String>> callback);

	void searchEntries(Map<String, Object> params,
			AsyncCallback<List<WordEntry>> callback);

	void addWordEntry(WordEntry entry, AsyncCallback<WordEntry> callback);

}
